﻿@using RealtyReview.Business.Models.ViewModels
@model ReviewDetailsViewModel

@{
    ViewBag.Title = "Review";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="container">
    @using (Html.BeginForm())
{
        @Html.Partial("Partial/_AddressDetails",new AddressViewModel(), new ViewDataDictionary
{
    TemplateInfo = new TemplateInfo {HtmlFieldPrefix = "AddressViewModel"}
});
        @Html.Partial("Partial/_ApartmentDetails",new ApartmentViewModel(), new ViewDataDictionary
{
    TemplateInfo = new TemplateInfo {HtmlFieldPrefix = "ApartmentViewModel"}
});
        @Html.Partial("Partial/_ReviewDetails",new ReviewViewModel(), new ViewDataDictionary
{
    TemplateInfo = new TemplateInfo {HtmlFieldPrefix = "ReviewViewModel"}
});
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Отправить" class="btn btn-default" />
            </div>
        </div>
    }
</div>
@section scripts
{
    <script src="@Url.Content("~/Scripts/geocoder.js")"></script>
    <script src="@Url.Content("~/Scripts/review-write-page.js")"></script>

    <script src="@Url.Content("~/libs/jquery-validation/jquery.validate.js")"></script>
    <script src="@Url.Content("~/libs/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js")"></script>
}
